#ifndef LINE_H
#define LINE_H

#include "MyDialog.h"

#include <QDialog>
#include <QHBoxLayout>
#include <QTextCodec>
#include "PatientInformation.h"
namespace Ui {
class Line;
}
class Line : public MyDialog
{
    Q_OBJECT

public:
    explicit Line(QWidget *parent = nullptr);
    ~Line();
    void init();
signals:
    void showSiri_signal();
    void siriWork_signal(MyDialogName dialogName,functionFlag flag);
    //void showPatient_signal(QString str);

private slots:
    void on_next_clicked();

    void on_last_clicked();

    void on_call_clicked();

    void on_finish_clicked();

   // void on_pushButton_clicked();

public slots:
    void siriWork(MyDialogName name,functionFlag flag);
protected:
    void setFuzzy();

private:
    Ui::Line *ui;
    void changeCurrentPatient();
    int currentShowPatientNumber=0;
    PatientInformation *patientInformation=nullptr;
    QTimer callTimer;
    int callTime=5000;//ms
    QTextCodec *codec=QTextCodec::codecForName("GBK");



};

#endif // LINE_H
